/**
 * 管理员接口
 *
 * @date 2021-07-07
 * @author 逗号米
 */

/**
 * 前缀
 *
 * @type {string}
 */
const prefix = 'cms/crm/user'

/**
 * 登录
 *
 * @return {string}
 */
export const login: string = `${prefix}/login`

/**
 * 首页
 *
 * @type {string}
 */
export const index: string = `${prefix}`

/**
 * 查询
 *
 * @return {string}
 */
export const query: string = `${prefix}/query`

/**
 * 存储
 *
 * @type {string}
 */
export const store: string = `${prefix}`

/**
 * 显示
 *
 * @param {number} id
 * @return {string}
 */
export const show = (id: number): string => `${prefix}/${id}`

/**
 * 更新
 *
 * @param id
 * @return {string}
 */
export const update = (id: number): string => `${prefix}/${id}`

/**
 * 删除
 *
 * @param {int} id
 * @return {string}
 */
export const destroy = (id: number): string => `${prefix}/${id}`

/**
 * 恢复删除
 *
 * @param id
 * @return {string}
 */
export const undelete = (id: number): string => `${prefix}/undelete/${id}`

/**
 * 设置锁定
 *
 * @param {int} value
 * @return {string}
 */
export const setLock = (value: number): string => `${prefix}/set-lock/${value}`
